﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Model;
using DAL;
using System.Data;

namespace BLL
{
    public class GonggaoBLL
    {
        GonggaoDAL dal = new GonggaoDAL();

        public List<Gonggao> GetListAll()
        {
            return dal.GetListAll();
        }
        public List<Gonggao> GetListAll1(string StudentNames)
        {
            return dal.GetListAll().Where(a => a.GonggaoName == StudentNames).ToList();
        }
        public bool Update(Gonggao DM)
        {
            return dal.Update(DM);
        }
        public bool ADD(Gonggao DM)
        {
            return dal.ADD(DM);
        }

        public bool ADDS(Gonggao DM)
        {
            return dal.ADDS(DM);
        }
        public List<Gonggao> GetListAllt()
        {
            return dal.GetListAllt();
        }
    }
}
